Skip to content

Add search box and platform field to coupon dashboard#2187

Merged
KatelynGit merged 4 commits into
mainfrom
add-search-and-platform-to-coupon-dash-kd
Apr 28, 2026
Merged

Add search box and platform field to coupon dashboard#2187
KatelynGit merged 4 commits into
mainfrom
add-search-and-platform-to-coupon-dash-kd

Conversation

@KatelynGit
Copy link
Copy Markdown
Contributor

What are the relevant tickets?

https://github.com/mitodl/hq/issues/9480

Description (What does it do?)

Add search box and platform field to coupon dashboard/chart

How can this be tested?

review qa and yaml

Copilot AI review requested due to automatic review settings April 28, 2026 18:28
@KatelynGit KatelynGit changed the title Add search and platform to coupon dash kd Add search box and platform field to coupon dashboard Apr 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates a Superset table chart used in the Coupons dashboard to surface a new platform dimension and enable in-table search, aligning with hq#9480’s request to improve coupon exploration.

Changes:

  • Added platform to the chart’s groupby fields.
  • Enabled the table’s built-in search (include_search: true).
  • Updated exported chart params (including removal of some existing table params).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 8 to +12
all_columns: []
allow_render_html: true
annotation_layers: []
color_pn: true
comparison_color_scheme: Green
comparison_type: values
conditional_formatting: []
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

annotation_layers and comparison_color_scheme were removed from the chart params in this change, which can unintentionally reset chart defaults (e.g., comparison coloring / annotations) and makes this diff larger than the stated goal (add platform + search). If the behavior should remain unchanged, please re-add these keys with their previous values; otherwise, call out the intentional behavior change in the PR description so reviewers/QA know to validate it.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed in commit 9abb33bannotation_layers: [] and comparison_color_scheme: Green have been restored.

Comment on lines +44 to 46
include_search: true
order_by_cols: []
order_desc: true
percent_metric_calculation: row_limit
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update drops order_desc: true and server_page_length: 10 from the table chart params. That can change default sort direction and pagination behavior in the dashboard UI. If those behaviors should stay the same, please restore these params to their previous values and re-export/normalize the asset; if the change is intentional, document the intended new behavior and ensure QA validates it.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored annotation_layers, comparison_color_scheme, order_desc: true, and server_page_length: 10 in commit 9abb33b. The diff now only contains the intended additions: platform in groupby, include_search: true, and conditional_formatting: [] (added by normalize).

…server_page_length to coupon chart

Agent-Logs-Url: https://github.com/mitodl/ol-data-platform/sessions/c578e8bc-4b15-4081-8a41-b6a0ab8b8f28

Co-authored-by: KatelynGit <134744245+KatelynGit@users.noreply.github.com>
@KatelynGit KatelynGit merged commit 7a78de7 into main Apr 28, 2026
6 checks passed
@KatelynGit KatelynGit deleted the add-search-and-platform-to-coupon-dash-kd branch April 28, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants